package dao.impl;

import dao.StudentDao;
import handler.MultiResultHandler;
import jdbc.JdbcUtil;
import pojo.Student;

import java.util.List;

public class StudentDaoImpl implements StudentDao {

    @Override
    public List<Student> searchStudents() {
        String sql = "select * from lesson.student";
        return JdbcUtil.query(sql, new MultiResultHandler<>(Student.class));
    }
}
